package io.gitee.kotle.demo.mvvm_demo


import android.graphics.Color
import android.os.Bundle
import io.gitee.kotle.android.utils.appCompatActivity
import io.gitee.kotle.base.library.BaseBindingDialog
import io.gitee.kotle.base.library.BaseBindingPopupWindow
import io.gitee.kotle.base.library.BaseDialog
import io.gitee.kotle.demo.databinding.DialogDemoBinding


class DemoDialog : BaseBindingDialog<DialogDemoBinding>() {
    override fun initUi(savedInstanceState: Bundle?) {

    }

    override fun isNeedBaseUiView(): Boolean {
        return true
    }

}

class DemoPopup: BaseBindingPopupWindow<DialogDemoBinding>() {
    override fun initUi(savedInstanceState: Bundle?) {
        super.initUi(savedInstanceState)
//        width=300
//        height=300
        baseUiView?.setBackgroundColor(Color.RED)
        baseUiView?.loadingBinding
        isOutsideTouchable=true
    }

    override fun isNeedBaseUiView(): Boolean {
        return true
    }

}